// 插件形式：注册全局公共组件
import PageTools from './PageTools'
// 导入组件
import UploadExcel from './UploadExcel'
import UploadImg from './UploadImg'
import ScreenFull from './ScreenFull'
import Lang from './Lang'
// 定义数组：里面放人全局公共组件
const components = [UploadExcel, PageTools, UploadImg, ScreenFull, Lang]
export default {
  /**
   *
   * @param {*} Vue
   */
  install (Vue) {
    // Vue.component('PageTools', PageTools)
    components.forEach(cp => {
      // cp.name作为批量注册组件的标签名
      Vue.component(cp.name, cp)
    })
  }
}
